//
//  EventCell.h
//  XPhoto
//
//  Created by baboy on 2019/8/8.
//  Copyright © 2019 baboy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Event.h"
NS_ASSUME_NONNULL_BEGIN
@protocol EventCellDelegate;
@interface EventCell : UITableViewCell
@property(nonatomic, strong) IBOutlet UIButton *avatarButton;
@property(nonatomic, strong) IBOutlet UITextView *contentTextView;
@property(nonatomic, strong) IBOutlet UILabel *timeLabel;
@property(nonatomic, strong) Event *event;
@property(nonatomic, assign) id<EventCellDelegate> delegate;

- (CGFloat)heightForEvent:(Event*)event width:(CGFloat)width;
- (IBAction)clickAvatarButton:(id)sender;
@end

@protocol EventCellDelegate <NSObject>

@optional
- (void)eventCellDidClickedAvatar:(id)eventCell;
- (void)eventCellDidClickedNickName:(id)eventCell;
- (void)eventCellDidClickedContent:(id)eventCell;

@end
NS_ASSUME_NONNULL_END
